home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
tcclib.exe
/
TODDATE.C
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-02-07
|
358 b
|
17 lines
#include <stdio.h>
#include <time.h>
unsigned Julian( char *datestr );
unsigned TodaysDate()
{
struct tm *st, *localtime();
long prsnt_time;
char tim[10];
time( &prsnt_time );
st = localtime( &prsnt_time );
sprintf( tim, "%02d-%02d-%02d", st->tm_mon + 1, st->tm_mday, st->tm_year );
return( Julian( tim ) );
}